﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 创建者：zhaijc
 * 创建时间：2023/4/18 16:36:52
 * 版本：V1.0.0
 * 描述：
 *
 * ----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：
 *
 * 版本：V1.0.1
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//全局参数
namespace MedianSocketService.ProtocolParams
{
    public class GlobalWorkStepParam
    {
        /// <summary>
        /// 工步数据的Crc校验码
        /// </summary>
        [Description("工步数据的Crc校验码")]
        public List<byte> crcWorkStepParam { get; set; }
        /// <summary>
        /// 工步数量
        /// </summary>
        [Description("工步数量")]
        public int nWorkStepNum { get; set; }


        /// <summary>
        /// 数据记录时间值
        /// </summary>
        [Description("数据记录时间值")]
        public int dataRecordTimeVal { get; set; }

        /// <summary>
        /// 数据记录时间值-开关
        /// </summary>
        [Description("数据记录时间值-开关")]
        public bool isDataRecordTimeValEnabled { get; set; }

        /// <summary>
        /// 数据记录电压值
        /// </summary>
        [Description("数据记录电压值")]
        public int dataRecordVoltageVal { get; set; }

        /// <summary>
        /// 数据记录电压值-开关
        /// </summary>
        [Description("数据记录电压值-开关")]
        public bool isDataRecordVoltageValEnabled { get; set; }

        /// <summary>
        /// 数据记录电流值
        /// </summary>
        [Description("数据记录电流值")]
        public int dataRecordCurrentVal { get; set; }


        /// <summary>
        /// 数据记录电流值-开关
        /// </summary>
        [Description("数据记录电流值-开关")]
        public bool isDataRecordCurrentValEnabled { get; set; }


        /// <summary>
        /// 电压上限
        /// </summary>
        [Description("电压上限")]
        public int voltageUpperLimit { get; set; }


        /// <summary>
        /// 电压上限-开关
        /// </summary>
        [Description("电压上限-开关")]
        public bool isVoltageUpperLimitEnabled { get; set; }

        /// <summary>
        /// 电压下限
        /// </summary>
        [Description("电压下限")]
        public int voltageLowerLimit { get; set; }

        /// <summary>
        /// 电压下限-开关
        /// </summary>
        [Description("电压下限-开关")]
        public bool isVoltageLowerLimitEnabled { get; set; }

        /// <summary>
        /// 充电电流上限
        /// </summary>
        [Description("充电电流上限")]
        public int chargeCurrentUpperLimit { get; set; }

        /// <summary>
        /// 充电电流上限-开关
        /// </summary>
        [Description("充电电流上限-开关")]
        public bool isChargeCurrentUpperLimitEnabled { get; set; }


        /// <summary>
        /// 放电电流上限
        /// </summary>
        [Description("放电电流上限")]
        public int dischargeCurrentUpperLimit { get; set; }

        /// <summary>
        /// 放电电流上限-开关
        /// </summary>
        [Description("放电电流上限-开关")]
        public bool isDischargeCurrentUpperLimitEnabled { get; set; }


        /// <summary>
        /// 电池温度上限-温度值(℃)
        /// </summary>
        [Description("电池温度上限 ")]
        public int temperatureUpperLimit { get; set; }
        /// <summary>
        /// 电池温度上限-开关
        /// </summary>
        [Description("电池温度上限-开关")]
        public bool isTemperatureUpperLimitEnabled { get; set; }
        /// <summary>
        /// 电池温度下限-温度值(℃)
        /// </summary>
        [Description("电池温度下限 ")]
        public int temperatureLowerLimit { get; set; }
        /// <summary>
        /// 电池温度下限-开关
        /// </summary>
        [Description("电池温度下限-开关")]
        public bool isTemperatureLowerLimitEnabled { get; set; }


        /// <summary>
        /// 充电容量上限
        /// </summary>
        [Description("充电容量上限 ")]
        public int chargeCapacityUpperLimit { get; set; }
        /// <summary>
        /// 充电容量上限-开关
        /// </summary>
        [Description("充电容量上限-开关")]
        public bool isChargeCapacityUpperLimitEnabled { get; set; }

        /// <summary>
        /// 放电容量上限
        /// </summary>
        [Description("放电容量上限 ")]
        public int dischargeCapacityUpperLimit { get; set; }
        /// <summary>
        /// 放电容量上限-开关
        /// </summary>
        [Description("放电容量上限-开关")]
        public bool isDischargeCapacityUpperLimitEnabled { get; set; }


        /// <summary>
        /// 充电功率上限
        /// </summary>
        [Description("充电功率上限 ")]
        public int chargePowerUpperLimit { get; set; }
        /// <summary>
        /// 充电功率上限-开关
        /// </summary>
        [Description("充电功率上限-开关")]
        public bool isChargePowerUpperLimitEnabled { get; set; }

        /// <summary>
        /// 放电功率上限
        /// </summary>
        [Description("放电功率上限 ")]
        public int dischargePowerUpperLimit { get; set; }
        /// <summary>
        /// 放电功率上限-开关
        /// </summary>
        [Description("放电功率上限-开关")]
        public bool isDischargePowerUpperLimitEnabled { get; set; }

        /// <summary>
        /// 电压差值-电池电压与第二电压差值-DelatV(V)
        /// </summary>
        [Description("电压差值 ")]
        public int voltageDifference { get; set; }

        /// <summary>
        /// 电压差值-开关
        /// </summary>
        [Description("电压差值-开关 ")]
        public bool isVoltageDifferenceEnabled { get; set; }


    }
}
